package net.zjitc.service.impl;

import net.zjitc.dao.CategoryDao;
import net.zjitc.dao.impl.CategoryDaoImpl;
import net.zjitc.pojo.Category;
import net.zjitc.service.CategoryService;

import java.util.List;

/**
 * Created by rj1502 on 2017/11/14.
 */
public class CategoryServiceImpl implements CategoryService {
    CategoryDao dao = new CategoryDaoImpl();
    public List<Category> findAll() {
        return dao.findAll();
    }

    public int insert(Category category) {
        return dao.insert(category);
    }

    public int delete(String cid) {
        return dao.delete(cid);
    }

    public int update(Category category) {
        return dao.update(category);
    }

    public Category findByCid(String cid) {
        return dao.findByCid(cid);
    }
}
